
import sys
sys.platform
print("sys为系统相关的参数和函数")
print(sys.version)
import os
os.getcwd()
print("os是操作系统接口模块")
import datetime
datetime.date.today()
import datetime
datetime.date.today().day
datetime.date.today().month
datetime.date.today().year
datetime.date.isoformat(datetime.date.today())
print("datetime是本的日期和时间类型")
import datetime
datetime.date.isoformat(datetime.date.today())
import time
time.strftime("%H:%M")
time.strftime("%A %p")
import time
help(time)

import time
time.localtime()
import platform
help(platform)

import os
help(os)


	

for i in [1,2,3]:
	print(i)

	


for ch in "hi!":
	print(ch)

	

for num in range(5):
    print("python")	

list(range(5))
list(range(5,10))
list(range(0,10,2))
list(range(10,0,2))

list(range(99,0,-1))
print("random模块")
import random
print(random.random())
 
import random
print(random.randint(1,7))

name = "Zhichao"
name2 = name
print(name,name2)
name = "Han-Teng"
print("What is the value of name2 now?")

from datetime import datetime  
odds = [  1, 3,  5,  7,  9, 11,13,15,17,19,
             21,23,25,27,29,31,33,35,37,39,
              41,43,45,47,49,51,53,55,57,59]    
right_this_minute = datetime.today().minute
if right_this_minute in odds:
    print("This minute seems a little odd.")
else:
    print("Not an odd minute.")
    
print("这是题目1,1秒太小 我改成3秒了")
import time
time.sleep(3)

print("这是题2")
time.sleep(1)
time.strftime("%Y:%j")

print("这是题目3,格式化时间")
for i in range(10):
    print(time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(time.time()) ))
    time.sleep(1) 

print("附加题    网上参考的  懵懵懂懂")
import sys;
num = 0;
for i in range(1,5):
    for j in range (1,5):
        for k in range(1,5):
            if (i != j)and ( j != k )and ( k != i):
                num+=1;
                print(i,j,k)
print ("总和 :%d" %(num));

for i in range(1, 10):
        for j in range(1, i+1):
                print('{}*{}={}\t'.format(j,i,i*j),end='')
        print()
